<template>
	<view class="sidebar">
				<view class="left">
					<view v-for="(item,index) in classList" :key="index" 
					:class="highlight==index?'highlight':''"
					@click="handleClick(index,item)"> 
					{{item.name}}
					</view>
				</view>
				<view class="right">
					<view v-for="item in rightData">
						<image :src="decodeURIComponent(item.bookCover[1]).substring(7)"
						 ></image>
						<view>{{item.name}}</view>
					</view>
				</view>
	</view>
</template>

<script>
	export default {
		name:"sidebar",
		data() {
			return {
				
			};
		}
	}
</script>

<style>

</style>
